import request from '@/utils/request'

// 获取首页统计数据
export const getDashboardStats = () => {
  return request({
    url: '/dashboard/stats',
    method: 'get'
  })
}

// 获取最近新增客户
export const getRecentCustomers = (params) => {
  return request({
    url: '/dashboard/recent-customers',
    method: 'get',
    params
  })
}

// 获取待处理工单
export const getPendingOrders = (params) => {
  return request({
    url: '/dashboard/pending-orders',
    method: 'get',
    params
  })
}